﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" AutoEventWireup="true" Inherits="System.Web.Mvc.ViewPage<IList<ModuleType>>" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Head" runat="server">
<% this.Title = JSC.Portal.Web.App.Resources.Msg.ModuleTypeManagement;  %>
    <script type="text/javascript">
        $(function() {
            $("#grid").flexigrid({
            usepager: false, title: "<%= JSC.Portal.Web.App.Resources.Msg.Module %>", useRp: false
            });
        });
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <table id="grid">
        <thead>
            <tr>
                <th width="100"><%= JSC.Portal.Web.App.Resources.Msg.Action %></th>
                <th width="100"><%= JSC.Portal.Web.App.Resources.Msg.Name %></th>
                <th width="150"><%= JSC.Portal.Web.App.Resources.Msg.AssemblyName %></th>
                <th width="200"><%= JSC.Portal.Web.App.Resources.Msg.ControllerName %></th>
                <th width="200"><%= JSC.Portal.Web.App.Resources.Msg.ViewName %></th>
            </tr>
        </thead>
        <tbody>
            <%foreach (ModuleType mt in ViewData.Model) { %>
            <tr>
                <td>
                    <%= Html.GridLinkButton(JSC.Portal.Web.App.Resources.Msg.Edit, Url.Action("Edit", new { id = mt.Id }))%>
                </td>
                <td>
                    <%= mt.Name %>
                </td>
                <td>
                    <%= mt.AssemblyName %>
                </td>
                <td>
                    <%= mt.ControllerName %>
                </td>
                <td>
                    <%= mt.ViewName %>
                </td>
            </tr>
            <%}%>
        </tbody>
    </table>
    <div class="button-bar-right">
        <%= Html.LinkButtonRight(JSC.Portal.Web.App.Resources.Msg.AddModuleType, Url.Action("Create"))%>
    </div>
</asp:Content>
